﻿//===========================================================
//==     2011 www.21ce.cc by WaveFingerCMS              ==
//==             www.21ce.cc                      ==
//==                                 ==
//===========================================================
using System;
using System.Collections.Generic;
using System.Data;
using WFinger.Model;
using WFinger.DALFactory;

namespace WFinger.CMS
{
    public class AdminGroup
    {
        private IAdminGroup agc;
        public AdminGroup()
        {
            agc = DataAccess.CreateAdminGroup();
        }

        public int add(WFinger.Model.AdminGroupInfo agci)
        {
            int result = agc.add(agci);
            return result;
        }

        public int Edit(WFinger.Model.AdminGroupInfo agci)
        {
            int result = agc.Edit(agci);
            return result;
        }

        public void Del(string id)
        {
            agc.Del(id);
        }

        public DataTable getInfo(string id)
        {
            DataTable dt = agc.getInfo(id);
            return dt;
        }

        public DataTable getClassList(string col, string TbName, string sqlselect)
        {
            DataTable dt = agc.getClassList(col, TbName, sqlselect);
            return dt;
        }

        public DataTable getColCname(string colname, string TbName, string classid, string id)
        {
            DataTable dt = agc.getColCname(colname, TbName, classid, id);
            return dt;
        }
    }
}
